<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<style>
.fileUpload {
    position: relative;
    overflow: hidden;
    margin: 10px;
    background-color: #5cb85c;
    border-color: #4cae4c;
}
.fileUpload input.upload {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
}
</style>

<div class="modal-dialog ms-modal-dialog">
  <div class="modal-content">

    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
      <h4 class="modal-title">上传</h4>
    </div>
    
    <iframe src="${config.uploadHost}?fileObject=TransSupplier&objectId=${transSupplier.id}&fileName=${type}&modal=true" style="width: 100%; height: auto; border: none;"></iframe>
    
    <%-- 
    <form class="form-horizontal ms-form modal-search-form" role="form" method="POST" action="${ctx.host}/suppliers/${supplierId}/trans-supplier/upload" enctype="multipart/form-data" data-validate="true">
      
      <input type="hidden" name="type" value="${type}"/>
      <input type="hidden" name="supplierMenuType" value="${supplierMenuType}"/>
      
      <div class="modal-body">
        <div class="form-group ms-form-group">
          <label class="control-label col-xs-3">上传扫描件</label>
          <div class="input-group col-xs-8 col-xs-offset-2">
            <div class="fileUpload btn btn-success btn-shadow btn-shadow-success ms-btn input-group-addon">
              <span style="color: #fff;">选择文件</span>
              <input id="uploadBtn" type="file" class="upload" accept="image/*, .doc, .docx, .pdf, .zip, .rar" name="file" />
            </div>
            <input id="uploadFile" class="form-control" name="data" data-validate="required" disabled placeholder="请点击左侧按钮选择文件" accept="image/*, .doc, .docx, .pdf" />
          </div>
        </div>
      </div>
      
      <div class="modal-footer ms-modal-footer">
        <button type="submit" class="btn ms-btn btn-primary">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="button" class="btn ms-btn ms-btn-gary" data-dismiss="modal">取消</button>
      </div>
      
    </form> --%>
      
  </div>
</div>
